#ifndef __log_h__
#define __log_h__

class SysLog_t {
	        static bool singleton;
        	const char *indent;
		void * flog;

public:
	        SysLog_t(const char *_indent) throw();
        	~SysLog_t() throw();
        
	        void emergency(const char *format, ...) throw();
        	void alert(const char *format, ...) throw();
	        void critical(const char *format, ...) throw();
        	void error(const char *format, ...) throw();
        	void warning(const char *format, ...) throw();
	        void notice(const char *format, ...) throw();
        	void info(const char *format, ...) throw();
	        void debug(const char *format, ...) throw();
        	
		void flush() throw();
};

extern SysLog_t *log;

#endif //__log_h__

